package com.wicket.okrbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.integration.dto.*;
import com.wicket.okrbff.biz.service.WeightTargetService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrbff.common.util.RedisUtil;
import javax.annotation.Resource;

import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrapp.integration.FwAppWeightTargetClient;
import com.wicket.okrcomponent.integration.dto.QuerySchemeClassMatchEvaTempAnswerDetailComRespDto;
import com.wicket.okrcomponent.integration.dto.QuerySchemeClassMatchEvaTempAnswerDetailComReqDto;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrbff.biz.service.dto.common.BffEvaObjTargetCycleWeightDto;
import java.util.stream.Collectors;

import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrframework.integration.FwBaseOrgClient;
import com.wicket.okrcomponent.integration.dto.QueryClassMatchResultToAnswerDetailComRespDto;
import com.wicket.okrcomponent.integration.dto.QueryClassMatchResultToAnswerDetailComReqDto;
import cn.hutool.core.collection.CollectionUtil;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class WeightTargetServiceImpl implements WeightTargetService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  FwCompConfSchemeClient fwCompConfSchemeClient;

@Resource
  FwAppWeightTargetClient fwAppWeightTargetClient;
@Resource
  FwBaseInductionRecordClient fwBaseInductionRecordClient;

@Resource
  FwBaseOrgClient fwBaseOrgClient;
/**
   * B3执行一键自动计算平均权重(管理)[7588]
   * gen by moon at 10/21/2023, 10:55:22 PM
   */
    @Trace(operationName = "B3执行一键自动计算平均权重(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementAutoCountAverageWeightRespDto implementAutoCountAverageWeight(BffImplementAutoCountAverageWeightReqDto reqDto){
      
       
       //virtualUsage D2查评价模板下周期设置配置答案  50723
      QuerySchemeClassMatchEvaTempAnswerDetailComRespDto querySchemeClassMatchEvaTempAnswerDetailComRespDto = null;
    QuerySchemeClassMatchEvaTempAnswerDetailComReqDto querySchemeClassMatchEvaTempAnswerDetailComReqDto=new QuerySchemeClassMatchEvaTempAnswerDetailComReqDto();
  querySchemeClassMatchEvaTempAnswerDetailComReqDto.setConfItemClassCode("CYCLE_SCHEME_CLASS");//CUSTOM_CONVENTION//sourceId:1196574_1_50723
querySchemeClassMatchEvaTempAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1196630_1_50723
if(reqDto!=null){
      querySchemeClassMatchEvaTempAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1196576_1_50723
    }
  
    /*D2查评价模板下周期设置配置答案[3069]   */
    Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getResultAspObjId(),"B3执行一键自动计算平均权重(管理)-D2查评价模板下周期设置配置答案-评价模板ID不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getConfItemClassCode(),"B3执行一键自动计算平均权重(管理)-D2查评价模板下周期设置配置答案-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getIsPlatData(),"B3执行一键自动计算平均权重(管理)-D2查评价模板下周期设置配置答案-是否标准答案不能为空",false);
      querySchemeClassMatchEvaTempAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeClassMatchEvaTempAnswerDetailCom(querySchemeClassMatchEvaTempAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
//virtualUsage D2查评价模板小数点规则等配置答案  50724
      QuerySchemeClassMatchEvaTempAnswerDetailComRespDto querySchemeClassMatchEvaTempAnswerDetailComRespDto_2 = null;
    QuerySchemeClassMatchEvaTempAnswerDetailComReqDto querySchemeClassMatchEvaTempAnswerDetailComReqDto_1=new QuerySchemeClassMatchEvaTempAnswerDetailComReqDto();
  querySchemeClassMatchEvaTempAnswerDetailComReqDto_1.setConfItemClassCode("DECIMAL_POINT_RULES_SET_CLASS");//CUSTOM_CONVENTION//sourceId:1196637_1_50724
querySchemeClassMatchEvaTempAnswerDetailComReqDto_1.setIsPlatData("FALSE");//sourceId:1196693_1_50724
if(reqDto!=null){
      querySchemeClassMatchEvaTempAnswerDetailComReqDto_1.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1196639_1_50724
    }
  
    /*D2查评价模板小数点规则等配置答案[3069]   */
    Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto_1.getResultAspObjId(),"B3执行一键自动计算平均权重(管理)-D2查评价模板小数点规则等配置答案-评价模板ID不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto_1.getConfItemClassCode(),"B3执行一键自动计算平均权重(管理)-D2查评价模板小数点规则等配置答案-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto_1.getIsPlatData(),"B3执行一键自动计算平均权重(管理)-D2查评价模板小数点规则等配置答案-是否标准答案不能为空",false);
      querySchemeClassMatchEvaTempAnswerDetailComRespDto_2 = fwCompConfSchemeClient.querySchemeClassMatchEvaTempAnswerDetailCom(querySchemeClassMatchEvaTempAnswerDetailComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
//virtualUsage D3执行自动计算平均权重(公共)  50725
      ImplementAutoCountAverageWeightComRespDto implementAutoCountAverageWeightComRespDto = null;
    if(querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null&&querySchemeClassMatchEvaTempAnswerDetailComRespDto_2 !=null){
          ImplementAutoCountAverageWeightComReqDto implementAutoCountAverageWeightComReqDto=new ImplementAutoCountAverageWeightComReqDto();
  if(reqDto!=null){
      implementAutoCountAverageWeightComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1196566_1_50725
implementAutoCountAverageWeightComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1196567_1_50725
implementAutoCountAverageWeightComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1196568_1_50725
implementAutoCountAverageWeightComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1196569_1_50725
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      implementAutoCountAverageWeightComReqDto.setPeriodicModeTypeCode(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getCycleMode());//SimpleFieldAssign//sourceId:1196570_1_50725
implementAutoCountAverageWeightComReqDto.setOpenMidCycle(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getOpenMidCycle());//SimpleFieldAssign//sourceId:1196571_1_50725
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto_2!=null){
      implementAutoCountAverageWeightComReqDto.setWeightPoint(querySchemeClassMatchEvaTempAnswerDetailComRespDto_2.getWeightPoint());//SimpleFieldAssign//sourceId:1199127_1_50725
implementAutoCountAverageWeightComReqDto.setWeightDecimalPoint(querySchemeClassMatchEvaTempAnswerDetailComRespDto_2.getWeightDecimalPoint());//SimpleFieldAssign//sourceId:1199128_1_50725
implementAutoCountAverageWeightComReqDto.setDecimalDigitsLastRules(querySchemeClassMatchEvaTempAnswerDetailComRespDto_2.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1196572_1_50725
    }
  
    /*D3执行自动计算平均权重(公共)[7578]   */
    Assert.isNull(implementAutoCountAverageWeightComReqDto.getEvaObjTypeCode(),"B3执行一键自动计算平均权重(管理)-D3执行自动计算平均权重(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementAutoCountAverageWeightComReqDto.getTargetCycleContentId(),"B3执行一键自动计算平均权重(管理)-D3执行自动计算平均权重(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementAutoCountAverageWeightComReqDto.getEvaluationTemplateId(),"B3执行一键自动计算平均权重(管理)-D3执行自动计算平均权重(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementAutoCountAverageWeightComReqDto.getPeriodicModeTypeCode(),"B3执行一键自动计算平均权重(管理)-D3执行自动计算平均权重(公共)-周期模式类型编码不能为空",false);
Assert.isNull(implementAutoCountAverageWeightComReqDto.getWeightPoint(),"B3执行一键自动计算平均权重(管理)-D3执行自动计算平均权重(公共)-权重小数点规则不能为空",false);
Assert.isNull(implementAutoCountAverageWeightComReqDto.getWeightDecimalPoint(),"B3执行一键自动计算平均权重(管理)-D3执行自动计算平均权重(公共)-权重分小数点规则   不能为空",false);
Assert.isNull(implementAutoCountAverageWeightComReqDto.getDecimalDigitsLastRules(),"B3执行一键自动计算平均权重(管理)-D3执行自动计算平均权重(公共)-小数最后一位规则不能为空",false);
      implementAutoCountAverageWeightComRespDto = fwAppWeightTargetClient.implementAutoCountAverageWeightCom(implementAutoCountAverageWeightComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
           }
BffImplementAutoCountAverageWeightRespDto retData = new BffImplementAutoCountAverageWeightRespDto();
  
  

  
  
return retData;
  }
/**
   * B3查询上级目标周期权重列表(管理)[9812]
   * gen by moon at 6/16/2024, 3:16:31 AM
   */
    @Trace(operationName = "B3查询上级目标周期权重列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQuerySuperiorTargetCycleWeightListRespDto querySuperiorTargetCycleWeightList(BffQuerySuperiorTargetCycleWeightListReqDto reqDto){


       QuerySuperiorTargetCycleWeightListRespDto querySuperiorTargetCycleWeightListRespDto_1 =null;
//步骤0: D3查询上级目标周期权重列表 - querySuperiorTargetCycleWeightList
     QuerySuperiorTargetCycleWeightListRespDto querySuperiorTargetCycleWeightListRespDto = null;
    QuerySuperiorTargetCycleWeightListReqDto querySuperiorTargetCycleWeightListReqDto=new QuerySuperiorTargetCycleWeightListReqDto();
  querySuperiorTargetCycleWeightListReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1871376_1
if(reqDto!=null){
      querySuperiorTargetCycleWeightListReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1871373_1
querySuperiorTargetCycleWeightListReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1871374_1
querySuperiorTargetCycleWeightListReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1871375_1
    }

    /*D3查询上级目标周期权重列表[9817]   */
    Assert.isNull(querySuperiorTargetCycleWeightListReqDto.getTableTypeCode(),"B3查询上级目标周期权重列表(管理)-D3查询上级目标周期权重列表-冗余内容表类型编码不能为空",false);
Assert.isNull(querySuperiorTargetCycleWeightListReqDto.getEntityId(),"B3查询上级目标周期权重列表(管理)-D3查询上级目标周期权重列表-冗余内容表主键ID不能为空",false);
Assert.isNull(querySuperiorTargetCycleWeightListReqDto.getEvaluationTemplateId(),"B3查询上级目标周期权重列表(管理)-D3查询上级目标周期权重列表-冗余评价模板ID不能为空",false);
Assert.isNull(querySuperiorTargetCycleWeightListReqDto.getSpaceId(),"B3查询上级目标周期权重列表(管理)-D3查询上级目标周期权重列表-创建于空间ID不能为空",false);
      querySuperiorTargetCycleWeightListRespDto = fwAppWeightTargetClient.querySuperiorTargetCycleWeightList(querySuperiorTargetCycleWeightListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      querySuperiorTargetCycleWeightListRespDto_1 = querySuperiorTargetCycleWeightListRespDto;

BffQuerySuperiorTargetCycleWeightListRespDto retData = new BffQuerySuperiorTargetCycleWeightListRespDto();
  if(querySuperiorTargetCycleWeightListRespDto_1!=null){
      retData.setEvaObjTargetCycleWeightList(querySuperiorTargetCycleWeightListRespDto_1.getEvaObjTargetCycleWeightList().stream().map(item -> BeanUtil.toBean(item, BffEvaObjTargetCycleWeightDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1871572_1
retData.setCloneSubCycle(querySuperiorTargetCycleWeightListRespDto_1.getCloneSubCycle());//SimpleFieldAssign//sourceId:1871573_1
      retData.setEvaObjTypeCode(querySuperiorTargetCycleWeightListRespDto_1.getEvaObjTypeCode());
    }




return retData;
  }
/**
   * B3查询下级目标周期权重列表(管理)[9820]
   * gen by moon at 6/16/2024, 3:16:39 AM
   */
    @Trace(operationName = "B3查询下级目标周期权重列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQuerySubordinateTargetCycleWeightListRespDto querySubordinateTargetCycleWeightList(BffQuerySubordinateTargetCycleWeightListReqDto reqDto){


       QuerySubordinateTargetCycleWeightListRespDto querySubordinateTargetCycleWeightListRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
BatchQueryDeptComBorderRespDto batchQueryDeptComBorderRespDto_1 =null;
QueryClassMatchResultToAnswerDetailComRespDto queryClassMatchResultToAnswerDetailComRespDto_1 =null;
//步骤0: D3查询下级目标周期权重列表 - querySubordinateTargetCycleWeightList
     QuerySubordinateTargetCycleWeightListRespDto querySubordinateTargetCycleWeightListRespDto = null;
    QuerySubordinateTargetCycleWeightListReqDto querySubordinateTargetCycleWeightListReqDto=new QuerySubordinateTargetCycleWeightListReqDto();
  querySubordinateTargetCycleWeightListReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1872161_1
if(reqDto!=null){
      querySubordinateTargetCycleWeightListReqDto.setSuperiorEvaObjTargetCycleId(reqDto.getSuperiorEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1872158_1
querySubordinateTargetCycleWeightListReqDto.setParentSubMidCycleType(reqDto.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:1872159_1
querySubordinateTargetCycleWeightListReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1872160_1
    }

    /*D3查询下级目标周期权重列表[9821]   */
    Assert.isNull(querySubordinateTargetCycleWeightListReqDto.getSuperiorEvaObjTargetCycleId(),"B3查询下级目标周期权重列表(管理)-D3查询下级目标周期权重列表-上级被评对象目标周期ID不能为空",false);
Assert.isNull(querySubordinateTargetCycleWeightListReqDto.getParentSubMidCycleType(),"B3查询下级目标周期权重列表(管理)-D3查询下级目标周期权重列表-父子中周期类型不能为空",false);
Assert.isNull(querySubordinateTargetCycleWeightListReqDto.getEvaluationTemplateId(),"B3查询下级目标周期权重列表(管理)-D3查询下级目标周期权重列表-冗余评价模板ID不能为空",false);
Assert.isNull(querySubordinateTargetCycleWeightListReqDto.getSpaceId(),"B3查询下级目标周期权重列表(管理)-D3查询下级目标周期权重列表-创建于空间ID不能为空",false);
      querySubordinateTargetCycleWeightListRespDto = fwAppWeightTargetClient.querySubordinateTargetCycleWeightList(querySubordinateTargetCycleWeightListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      querySubordinateTargetCycleWeightListRespDto_1 = querySubordinateTargetCycleWeightListRespDto;

//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(querySubordinateTargetCycleWeightListRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(querySubordinateTargetCycleWeightListRespDto!= null&&  querySubordinateTargetCycleWeightListRespDto.getEvaObjTargetCycleWeightList() !=null&& !CollectionUtil.isEmpty(querySubordinateTargetCycleWeightListRespDto.getEvaObjTargetCycleWeightList())){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(querySubordinateTargetCycleWeightListRespDto.getEvaObjTargetCycleWeightList().stream().map(item->item.getVirtualOrgInductionRecordId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1872163_1
    }

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }

//步骤2: D1-3批量查部门(公共)(边界) - batchQueryDeptComBorder
     BatchQueryDeptComBorderRespDto batchQueryDeptComBorderRespDto = null;
    if(querySubordinateTargetCycleWeightListRespDto !=null){
          BatchQueryDeptComBorderReqDto batchQueryDeptComBorderReqDto=new BatchQueryDeptComBorderReqDto();
  if(querySubordinateTargetCycleWeightListRespDto!= null&&  querySubordinateTargetCycleWeightListRespDto.getEvaObjTargetCycleWeightList() !=null&& !CollectionUtil.isEmpty(querySubordinateTargetCycleWeightListRespDto.getEvaObjTargetCycleWeightList())){
      batchQueryDeptComBorderReqDto.setDeptList(querySubordinateTargetCycleWeightListRespDto.getEvaObjTargetCycleWeightList().stream().map(item->item.getDeptId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1872167_1
    }

    /*D1-3批量查部门(公共)(边界)[2568]   */

      batchQueryDeptComBorderRespDto = fwBaseOrgClient.batchQueryDeptComBorder(batchQueryDeptComBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryDeptComBorderRespDto_1 = batchQueryDeptComBorderRespDto;
           }

//步骤3: D2-3查询分组匹配结果转答案(公共)(跨服务） - queryClassMatchResultToAnswerDetailCom
     QueryClassMatchResultToAnswerDetailComRespDto queryClassMatchResultToAnswerDetailComRespDto = null;
    QueryClassMatchResultToAnswerDetailComReqDto queryClassMatchResultToAnswerDetailComReqDto=new QueryClassMatchResultToAnswerDetailComReqDto();
  queryClassMatchResultToAnswerDetailComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:1872208_1
queryClassMatchResultToAnswerDetailComReqDto.setConfItemClassCode("DECIMAL_POINT_RULES_SET_CLASS");//CUSTOM_CONVENTION//sourceId:1872174_1
queryClassMatchResultToAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1872253_1
queryClassMatchResultToAnswerDetailComReqDto.setIsSingleResult("TRUE");//sourceId:1872254_1
if(reqDto!=null){
      queryClassMatchResultToAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1872207_1
    }

    /*D2查询权重分值小数点规则配置参数[3088]   */
    Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getResultAspObjId(),"B3查询下级目标周期权重列表(管理)-D2查询权重分值小数点规则配置参数-开通对象ID不能为空",false);
Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getResultAspObjType(),"B3查询下级目标周期权重列表(管理)-D2查询权重分值小数点规则配置参数-开通对象类型编码不能为空",false);
Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getConfItemClassCode(),"B3查询下级目标周期权重列表(管理)-D2查询权重分值小数点规则配置参数-分组标识不能为空",false);
Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getIsPlatData(),"B3查询下级目标周期权重列表(管理)-D2查询权重分值小数点规则配置参数-是否标准答案不能为空",false);
Assert.isNull(queryClassMatchResultToAnswerDetailComReqDto.getIsSingleResult(),"B3查询下级目标周期权重列表(管理)-D2查询权重分值小数点规则配置参数-是否单一答案不能为空",false);
      queryClassMatchResultToAnswerDetailComRespDto = fwCompConfSchemeClient.queryClassMatchResultToAnswerDetailCom(queryClassMatchResultToAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryClassMatchResultToAnswerDetailComRespDto_1 = queryClassMatchResultToAnswerDetailComRespDto;

BffQuerySubordinateTargetCycleWeightListRespDto retData = new BffQuerySubordinateTargetCycleWeightListRespDto();
  //数据集融合  MoreListToOneSource
        if(querySubordinateTargetCycleWeightListRespDto_1!= null && !CollectionUtil.isEmpty(querySubordinateTargetCycleWeightListRespDto_1.getEvaObjTargetCycleWeightList()) ){
          for (EvaObjTargetCycleWeightDto evaObjTargetCycleWeightDto : querySubordinateTargetCycleWeightListRespDto_1.getEvaObjTargetCycleWeightList()) {
              BffEvaObjTargetCycleWeightDto retElm = new BffEvaObjTargetCycleWeightDto();
             if(querySubordinateTargetCycleWeightListRespDto_1!=null){
      retElm.setObjTargetCycleWeightSetId(evaObjTargetCycleWeightDto.getObjTargetCycleWeightSetId());//SimpleFieldAssign//sourceId:374437_2
retElm.setEvaObjTargetCycleId(evaObjTargetCycleWeightDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:374438_2
retElm.setCyclelAlias(evaObjTargetCycleWeightDto.getCyclelAlias());//SimpleFieldAssign//sourceId:374439_2
retElm.setTargetCycleName(evaObjTargetCycleWeightDto.getTargetCycleName());//SimpleFieldAssign//sourceId:374440_2
retElm.setParentSubMidCycleType(evaObjTargetCycleWeightDto.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:374441_2
retElm.setCycleId(evaObjTargetCycleWeightDto.getCycleId());//SimpleFieldAssign//sourceId:374442_2
retElm.setCycleStandardName(evaObjTargetCycleWeightDto.getCycleStandardName());//SimpleFieldAssign//sourceId:374443_2
retElm.setTargetCycleContentId(evaObjTargetCycleWeightDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:374444_2
retElm.setWeightValue(evaObjTargetCycleWeightDto.getWeightValue());//SimpleFieldAssign//sourceId:374445_2
retElm.setWeightScore(evaObjTargetCycleWeightDto.getWeightScore());//SimpleFieldAssign//sourceId:374446_2
retElm.setVirtualOrgInductionRecordId(evaObjTargetCycleWeightDto.getVirtualOrgInductionRecordId());//SimpleFieldAssign//sourceId:374447_2
retElm.setDeptId(evaObjTargetCycleWeightDto.getDeptId());//SimpleFieldAssign//sourceId:374448_2
    }
              retData.getEvaObjTargetCycleWeightList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(evaObjTargetCycleWeightDto.getVirtualOrgInductionRecordId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:374449_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:374450_2
    }
                }
            }
          }

 if(batchQueryDeptComBorderRespDto_1!= null){
          for (DeptDto deptDto : batchQueryDeptComBorderRespDto_1.getDeptList()) {
                if (deptDto.getDeptId().equals(evaObjTargetCycleWeightDto.getDeptId())) {
                 if(batchQueryDeptComBorderRespDto_1!=null){
      retElm.setDeptShortName(deptDto.getDeptShortName());//SimpleFieldAssign//sourceId:374451_2
    }
                }
            }
          }

          }
        }//sourceId:1872172_1
if(queryClassMatchResultToAnswerDetailComRespDto_1!=null){
      retData.setDecimalDigitsLastRules(queryClassMatchResultToAnswerDetailComRespDto_1.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1872286_1
retData.setWeightDecimalPoint(queryClassMatchResultToAnswerDetailComRespDto_1.getWeightDecimalPoint());//SimpleFieldAssign//sourceId:1872287_1
retData.setWeightPoint(queryClassMatchResultToAnswerDetailComRespDto_1.getWeightPoint());//SimpleFieldAssign//sourceId:1872288_1
    }




return retData;
  }
  //
}
